<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Dialog</title>
</head>
<body>
	<h2 class="contentTitle">
		xx
	</h2>
	<div class="pageContent">
		<div class="panelBar">
			<ul class="toolBar">
				<li><a href="DialogAjax?opt=set" target="ajaxTodo" class="add" callback="userdialog"><span>set</span></a></li>
				<li><a href="DialogAjax?id={id}&opt=del" target="ajaxTodo" class="delete" title="sure?" callback="userdialog"><span>delete</span></a></li>
			</ul>
		</div>
		<table class="table" width="98%">
			<thead>
				<tr>
					<th>序号</th>
					<th>Name</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${users }" var="user" varStatus="i">
					<tr rel="${user.id }" target="id">
						<td>${i.count }</td>
						<td>${user.e_name }</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	
	<script type="text/javascript">
		function userdialog(json){
			//需要操作后的提示信息就打开注释第一行注释，如果只是要刷新只需一句reload(...);
// 			DWZ.ajaxDone(json);
// 			if (json.statusCode == DWZ.statusCode.ok){
// 				if (json.navTabId){
					$.pdialog.reload("DialogAjax?opt=list",json.navTabId);
// 				} else if (json.rel) {
// 					navTabPageBreak({}, json.rel);
// 				}
// 				if ("closeCurrent" == json.callbackType) {
// 					$.pdialog.closeCurrent();
// 				}
// 			}
		}
	</script>
</body>
</html>